{extend name="Public:base" /}
{block name="main"}

        <ol class="breadcrumb auto-nav-path">
          <li><i class="glyphicon glyphicon-home"></i>&nbsp;&nbsp;<a href="#">后台首页</a></li>
          <li class="active">后台管理中心</li>
        </ol>   
    
        <div class="panel panel-default auto-back-panel">
            <div class="panel-heading"> <i class="glyphicon glyphicon-th-list"></i> 列表页</div>
            <div class="panel-body">
            
        <nav class="navbar navbar-default auto-nav-serach-form">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-2"><form class="navbar-form navbar-left auto-data-update">
        <a href="{:url('add', array('pid' => $id))}" class="auto-data-add-add"><button type="button" class="btn btn-primary">新增</button></a>
    </form></div>
                    <div class="col-md-10 auto-data-form"><form class="navbar-form navbar-right auto-data-map" role="search">
        <div class="input-group auto-map-inline-input">
            <span class="input-group-addon" id="sizing-addon1">关键字</span>
            <input type="text" class="form-control" placeholder="大家都在搜" aria-describedby="sizing-addon1">
        </div>
    
        <button type="submit" class="btn btn-default auto-map-search"><i class="glyphicon glyphicon-search"></i> 筛选</button>
    </form></div>
                </div>
            </div>
        </nav>
    
        <table class="table table-bordered table-hover auto-content-list">
            <tbody><tr><th>ID</th> <th>菜单标题</th><th>上级菜单</th><th>分组</th><th>URL</th><th>排序</th><th>隐藏</th><th>操作</th></tr>
            {foreach $list as $vo}
            <tr>

                <td>{$vo.id}</td>
                <td><a href="{:url('index', array('id' => $vo['id'] ))}">{$vo.title}</a></td>
                <td>{$vo.pid}</td>
                <td>{$vo.group_iden}</td>
                <td>{$vo.url}</td>
                <td>
                    {$vo.sort}
                </td>
                <td>{$vo.is_show}</td>
                <td>
                    <a href="{:url('edit', array('id' => $vo['id'], 'pid' => $id))}"><span class="label label-info e-action"><i class="glyphicon glyphicon-pencil"></i></span></a>
                    <a href="javascript:;" data-toggle="modal" data-target=".bs-example-modal-sm"><span class="label label-danger e-action"><i class="glyphicon glyphicon-trash"></i></span></a>
                </td>
            </tr>
            {/foreach}
        </tbody></table> 
    
        <nav aria-label="...">
            {$page}
        </nav>
    </div>
</div>
    
{/block}

{block name="javascript"}
{/block}